<html>

<head>
	<link rel="stylesheet" type="text/css" href="{{MEDIA_URL}}/media/css/base.css">
	<link rel="stylesheet" type="text/css" href="{{MEDIA_URL}}/media/css/form.css">
	<script type="text/javascript" src="{{MEDIA_URL}}/media/js/jquery.js"></script>
</head>

<body>
	{% include "sysmodel/header.html" %}
	
	<div class="breadcrumbs">
			<a href="/sysmodel/home/">Home</a> &gt;
			<a href="/sysmodel/flexyclass/home/?#{{ field.flexyclass.id }}">{{ field.name }}</a> &gt;
			Add Field
	</div>
	
		<form enctype="multipart/form-data" action="/sysmodel/flexyclass/field/displayfield/add/{{ field.id }}/" method="post">
		<div style="display:none">{% csrf_token %}</div>
		
		<span class="form-container"> 
			
			<span class="form-heading">
				<h4>Add Display Field ({{field.name}})</h4>
			</span>
			{% if rm %} <div class="errornote">{{ rm }}</div> {% endif %}
			<div class="form">

					<fieldset>
						<legend>Display Field</legend>
						<table>
							<tr>
								<td>
									<label>Choose Field:</label>
								</td>
								<td>
									<select  name="DISPLAY_FIELD_ID">
										{% for f in fields %}
											{% if f.type != 'NTO1' and f.type != 'NTOM' and f.id != field.sel_field.id %}
												<option  value="{{f.id}}">{{f.name}}</option>
											{% endif %}
										{% endfor %}
									</select>
								</td>
							</tr>
						</table>
					</fieldset>
				
			</div>
			
			<span class="form-submit">
				<input class="submit" type="submit" value="Save"/>
				<input class="submit" type="reset" value="Reset"/>
			</span>
			
		</span>
	</form>
	
	
</body>
</html>